package cn.sfinger.huifu.p2p.base;

/**
 * 
 * 汇付天下接口常量
 * 
 * @author michael.wang.54@gmail.com
 * @version 1.0.0
 * @date 2015年12月9日
 */
public final class HuifuConstant {
	private HuifuConstant(){}
	
	// 接口版本
	public static final String VERSION_10 = "10";
	public static final String VERSION_20 = "20";
	
	// 接口应答代码
	public static final String RESP_CODE_000= "000";
	public static final String RESP_CODE_000_DESC= "成功";
	
	// 用户开户,页面浏览器方式
	public static final String CMDID_USER_REGISTER= "UserRegister";
	public static final String[] SIGN_KYES_USER_REGISTER={"Version","CmdId","MerCustId","BgRetUrl","RetUrl","UsrId","UsrName","IdType","IdNo","UsrMp","UsrEmail","MerPriv","PageType"};
	public static final String[] VERIFY_KYES_USER_REGISTER= {"CmdId","RespCode","MerCustId", "UsrId", "UsrCustId", "BgRetUrl", "TrxId", "RetUrl", "MerPriv"};

	// 用户绑卡,页面浏览器方式
	public static final String CMDID_USER_BIND_CARD= "UserBindCard";
	public static final String[] SIGN_KEYS_USER_BIND_CARD= {"Version","CmdId","MerCustId","UsrCustId","BgRetUrl","MerPriv","PageType"};
	public static final String[] VERIFY_KEYS_USER_BIND_CARD= {"CmdId","RespCode","MerCustId","OpenAcctId","OpenBankId","UsrCustId","TrxId","BgRetUrl","MerPriv"};
	
	// 用户登录,页面浏览器方式
	public static final String CMDID_USER_LOGIN= "UserLogin"; 
	public static final String CMDID_ACCT_MODIFY= "AcctModify"; //账户信息修改,页面浏览器方式
	public static final String CMDID_CORP_REGISTER= "CorpRegister"; //担保类型企业开户接口,页面浏览器方式
	public static final String CMDID_DEL_CARD= "DelCard"; //删除银行卡接口,后台数据流方式
	public static final String CMDID_NET_SAVE= "NetSave"; //网银充值,页面浏览器方式
	public static final String CMDID_POS_WH_SAVE= "PosWhSave"; //商户无卡代扣充值,后台数据流方式
	public static final String CMDID_USR_FREEZE_BG= "UsrFreezeBg"; //资金（货款）冻结,后台数据流方式
	public static final String CMDID_USR_UN_FREEZE= "UsrUnFreeze"; //资金（货款）解冻,后台数据流方式
	public static final String CMDID_INITIATIVE_TENDER= "InitiativeTender"; //主动投标,页面浏览器方式
	public static final String CMDID_AUTO_TENDER= "AutoTender"; //自动投标,后台数据流方式
	public static final String CMDID_TENDER_CANCLE= "TenderCancle"; //投标撤销,页面浏览器方式
	public static final String CMDID_AUTO_TENDER_PLAN= "AutoTenderPlan"; //自动投标计划,页面浏览器方式
	public static final String CMDID_AUTO_TENDER_PLAN_CLOSE= "AutoTenderPlanClose"; //自动投标关闭,页面浏览器方式
	public static final String CMDID_LOANS= "Loans"; //自动扣款（放款）,后台数据流方式
	public static final String CMDID_REPAYMENT= "Repayment"; //自动扣款（还款）,后台数据流方式
	
	//转账（商户用）,页面浏览器方式
	public static final String CMDID_TRANSFER= "Transfer";
	public static final String[] SIGN_KEYS_TRANSFER= {"Version","CmdId","OrdId","OutCustId","OutAcctId","TransAmt","InCustId","InAcctId","RetUrl","BgRetUrl","MerPriv"};
	public static final String[] VERIFY_KEYS_TRANSFER= {"CmdId","RespCode","OrdId","OutCustId","OutAcctId","TransAmt","InCustId","InAcctId","RetUrl","BgRetUrl","MerPriv"};
	
	
	public static final String CMDID_CASH_AUDIT= "CashAudit"; //取现复核,后台数据流方式
	public static final String CMDID_CASH= "Cash"; //取现,页面浏览器方式
	public static final String CMDID_USR_ACCT_PAY= "UsrAcctPay"; //用户账户支付,页面浏览器方式
	public static final String CMDID_MER_CASH= "MerCash"; //商户代取现接口,后台数据流方式
	
	//前台用户间转账接口,页面浏览器方式
	public static final String CMDID_USR_TRANSFER= "UsrTransfer"; 
	public static final String[] SIGN_KEYS_USR_TRANSFER= {"Version","CmdId", "OrdId","OutCustId","OutAcctId","TransAmt","InCustId","InAcctId","RetUrl","BgRetUrl","MerPriv"};
	public static final String[] VERIFY_KEYS_USR_TRANSFER= {"CmdId", "RespCode", "OrdId" , "MerCustId","UsrCustId","TransAmt","InUsrCustId","RetUrl","BgRetUrl","MerPriv","RespExt"};
	
	public static final String CMDID_CREDIT_ASSIGN= "CreditAssign"; //债权转让接口,页面浏览器方式
	public static final String CMDID_AUTO_CREDIT_ASSIGN= "AutoCreditAssign"; //自动债权转让接口,后台数据流方式
	public static final String CMDID_FSS_TRANS= "FssTrans"; //生利宝交易接口,页面浏览器方式
	
	// 余额查询(页面),页面浏览器方式
	public static final String CMDID_QUERY_BALANCE= "QueryBalance"; 
	public static final String[] SIGN_KEYS_QUERY_BALANCE= {"Version","CmdId","MerCustId","UsrCustId"};
	public static final String[] VERIFY_KEYS_QUERY_BALANCE= {}; 

	// 余额查询(后台),后台数据流方式
	public static final String CMDID_QUERY_BALANCE_BG= "QueryBalanceBg"; 
	public static final String[] SIGN_KEYS_QUERY_BALANCE_BG={"Version","CmdId","MerCustId", "UsrCustId"};
	public static final String[] VERIFY_KEYS_QUERY_BALANCE_BG={"CmdId","RespCode","MerCustId", "UsrCustId","AvlBal", "AcctBal","FrzBal"};

	// 商户子账户信息查询,后台数据流方式
	public static final String CMDID_QUERY_ACCTS= "QueryAccts"; 
	public static final String[] SIGN_KEYS_QUERY_ACCT={"Version","CmdId","MerCustId"};
	public static final String[] VERIFY_KEYS_QUERY_ACCT={"CmdId", "RespCode","MerCustId"};
	
	public static final String CMDID_QUERY_TRANS_STAT= "QueryTransStat"; //交易状态查询,后台数据流方式
	public static final String CMDID_QUERY_TENDER_PLAN= "QueryTenderPlan"; //自动投标计划状态查询,后台数据流方式
	public static final String CMDID_RECONCILIATION= "Reconciliation"; //投标对账(放款和还款对账),后台数据流方式
	public static final String CMDID_TRF_RECONCILIATION= "TrfReconciliation"; //商户扣款对账,后台数据流方式
	public static final String CMDID_CASH_RECONCILIATION= "CashReconciliation"; //取现对账,后台数据流方式
	public static final String CMDID_QUERY_ACCT_DETAILS= "QueryAcctDetails"; //账户明细查询,页面浏览器方式
	public static final String CMDID_SAVE_RECONCILIATION= "SaveReconciliation"; //充值对账,后台数据流方式
	public static final String CMDID_QUERY_RETURN_DZ_FEE= "QueryReturnDzFee"; //垫资手续费返还查询,后台数据流方式
	public static final String CMDID_CORP_REGISTER_QUERY= "CorpRegisterQuery"; //担保类型企业开户状态查询接口,后台数据流方式
	public static final String CMDID_CREDIT_ASSIGN_RECONCILIATION= "CreditAssignReconciliation"; //债权查询接口,后台数据流方式
	public static final String CMDID_FSS_PURCHASE_RECONCILIATION= "FssPurchaseReconciliation"; //生利宝转入对账接口,后台数据流方式
	public static final String CMDID_FSS_REDEEM_RECONCILIATION= "FssRedeemReconciliation"; //生利宝转出对账接口,后台数据流方式
	public static final String CMDID_QUERY_FSS= "QueryFss"; //生利宝产品信息查询,后台数据流方式
	public static final String CMDID_QUERY_FSS_ACCTS= "QueryFssAccts"; //生利宝账户信息查询,后台数据流方式
	public static final String CMDID_QUERY_CARD_INFO= "QueryCardInfo"; //银行卡查询接口,后台数据流方式
	
	// 请求汇付接口签名key数组

	
	// 汇付应答签名key数组
	public static final String[] VERIFY_KEYS_NET_SAVE= {"CmdId","RespCode","MerCustId","UsrCustId","OrdId","OrdDate","TransAmt","TrxId","RetUrl","BgRetUrl","MerPriv"};
	
}
